<?php
class StatMultiPeriodAction extends CAction {
	public function run() {
		$statModel = new AccountTokenMultiPeriodStat();
		$statModel->unsetAttributes(); // clear any default values
		$overallStat = array();
		if (isset($_GET['AccountTokenMultiPeriodStat'])) {
			$statModel->attributes = $_GET['AccountTokenMultiPeriodStat'];

			if ($statModel->validate()) {
				$overallStat = array(
					'id' => 0,
					'name' => '总览',
				);
			}
		}
		$this->getController()
			->render('statMultiPeriod',
				array(
					'statModel' => $statModel,
					'overallStat' => $overallStat,
				));
	}
}
